<?php
define( '_VALID_MOS', 1 );
error_reporting(0);
@session_start();
extract($_REQUEST); 
//import_request_variables('gprc');
$time = time();
$COLOR=array('#b8e0b1', '#dae6d8');
define("blank", "N/A");
//define("bid_per_rate","1");

 // Included libraries.
include('.htinc/_mysql.php');
include('.htinc/_general.php');
include("class.phpmailer.php");
include ('.htinc/_function.php');
include('./ip.php');
//include('./png_script.php');
include ('Thumbnail.class.php');

$dbh = new GenericDatabaseClass();
$functions = new auction_functions($dbh);

$qry="select * from general_setting";

$res=$dbh->query($qry);
$row=mysql_fetch_object($res);
$SITE_TITLE=stripslashes($row->site_title);
$SITE_LOGO_FRONT=addslashes($row->logo_front);
$SITE_URL=stripslashes($row->site_url);
$SITE_EMAIL=stripslashes($row->site_email);
$admin_email=stripslashes($row->email);
$meta_description= stripslashes($row->meta_description);
$meta_keyword= stripslashes($row->meta_keyword);
$MAX=stripslashes($row->rows_per_page);
//$footer=stripslashes($row->footer);
$History_Limit=stripslashes($row->num_bids);
$SMS_CODE=stripslashes($row->sms_code);
$SMS_KEYWORD=stripslashes($row->sms_keyword);
$SMS_RATE=stripslashes($row->sms_rate);
$INSTRUCTION=stripslashes($row->instruction);

$Time_Zone_Diff=$row->time_zone_diff;
$CURRENT_TIME=(time()+$Time_Zone_Diff);
$CURRENT_DATE=date("Y-m-d",$CURRENT_TIME);
$CURRENT_Time=date("Y-m-d H:i:s",$CURRENT_TIME);
$END_Time=date("d-m-Y H:i:s",$CURRENT_TIME);   
$Today_Time=date("H:i:s",$CURRENT_TIME);


if(strlen($INSTRUCTION)>300)
	{
	$INSTRUCTION =wordwrap(substr($INSTRUCTION, 0, 300), 20, "\n", 1);
	$INSTRUCTION = $INSTRUCTION."..."; 
	}
else
	$INSTRUCTION = wordwrap($INSTRUCTION, 20, "\n", 1);

$Small_box=stripslashes($row->small_box);
$Large_box=stripslashes($row->large_box);
$Address=stripslashes($row->address);
$Phone=stripslashes($row->phone);
$sms=stripslashes($row->sms);
$Logo=stripslashes($row->logo);
$Paypal_Email=stripslashes($row->pay_email);
$bid_per_rate=stripslashes($row->decrease_bid);
$Friend_Bid=stripslashes($row->friend_bid);
$Authorize_Login_Id=stripslashes($row->authorize_login);

$Auc_del_time=stripslashes($row->auc_del_time);
$Bidbuddy_time=stripslashes($row->bidbuddy_time);
$First_purchase_bid=stripslashes($row->first_purchase_bid);
$Site_open_close_time=stripslashes($row->site_open_close_time);
$Site_off_msg=stripslashes($row->site_off_msg);
$Site_status=stripslashes($row->site_status);
$Signing_up=stripslashes($row->signing_up);
$Paypal_status=stripslashes($row->paypal_status);
$Authorize_status=stripslashes($row->authorize_status);
$Banner_text=stripslashes($row->banner_text);

$Small_box_left=stripslashes($row->small_box_left);
$Small_box_end=stripslashes($row->small_box_end);
$Timer_countdown=stripslashes($row->timer_countdown);
$Wait_time=stripslashes($row->wait_time);
$before_paid=stripslashes($row->before_paid);
$orderlist=stripslashes($row->orderlist);
$watermark=stripslashes($row->watermark);
$watermark_small=stripslashes($row->watermark_small);
 
$Authorize_Transaction_Key=stripslashes($row->authorize_trans_key);
$Meta_tag='<meta name="description" content="'.$meta_description.'" />
				<meta name="keywords" content="'.$meta_keyword.'" />';
				
	
$register_form=$functions->register_form($SITE_URL);
$edit_form=$functions->edit_form($show);
$header=$functions->header($Link_url,$SITE_TITLE,$register_form,$edit_form,$Logo,$SITE_URL);
$getfooter=$functions->get_footer();
$footer=$functions->footer();
$navigation=$functions->menuheader();

if($divert!=1)
{
	$ipMsg="Your ip has been blocked for personal account.";
//	$functions->whole_site();
}
else
	$ipMsg="Your ip has been blocked for this whole site.";

// What page are we to show?
if($Site_status=='Y')
{
if(!$show) $show = "index"; 
}
else if($Site_status=='N')
{
$show = "index_off"; 
}
$page = "$show.html";

// If the page is the index frameset, then just show that - no parsing!
// The index frameset is used to protect the URLs from display within the location bar of the browser,
// as well as to control the size of the display area; if this is not needed, then simply remove
// the following code.
// If there is a page-specific include file, then use it.

$my_include_file = "./.htinc/$show.php"; if(file_exists($my_include_file)) @include("$my_include_file");

// All pages are constructed of a header and footer (located in the _html_templates.inc file)
// and then the page content which will be in .html/$skin/$page
//
// First we parse the page content for DATA_ tags which are then eval'd to replace them
// with dynamic content, and the entire structure is the sent to the browser.

$returned_page = GSL_ParseHTML($returned_page,$page);
$returned_page .= $html_config["footer"];

eval("\$returned_page = \"$returned_page\";");
echo $returned_page;
?>










<!--08b67d86ece09f9df3eea0d75c2612fe-->